package com.erp.module.scanBaomingxi

import android.content.Context
import android.util.Log
import com.erp.Interface.OnUserDataInterface
import com.erp.contacts.Contacts
import com.erp.util.Httputil.*
import org.xutils.http.RequestParams
import org.xutils.x

class scanBaomingxiM {
    /**获取新开专卖店列表 */
    fun getZhuanMaiDian(context: Context, scan: String, onUserDataInterface: OnUserDataInterface) {
        val params = RequestParams(Contacts.PRODUCTION+"/package_material")
        getparams(context, params)
        addtoken(params)
        params.addBodyParameter("", "" , Contacts.BOUNDARY)
        params.addBodyParameter("scan", scan , Contacts.BOUNDARY)
        params.addHeader("ACCEPT", "application/json")
        x.http().post<String>(params, Call(context, onUserDataInterface))
    }
}